ISCPersistenceUnitCollection Interface

The following table contains information on the ISCPersistenceUnitCollection interface:

Signature

Description

Valid Arguments

VARIANT_BOOL Clear()

Purges all units from the collection

None

Example 29

The following example illustrates how to clear persistence units using C++. It assumes that there is an Application object from Example 1:

// remove the persistence units
scAppPtr->GetPersistenceUnits()->Clear();

The following example illustrates how to clear persistence units using Visual Basic .NET. It assumes that there is an Application object from Example 1:

scApp.PersistenceUnits.Clear